package com.gxa.service;

import com.gxa.common.PaginationResult;
import com.gxa.pojo.Announcement;
import com.gxa.pojo.Employee;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: zrf
 * Date: 2020/10/29 9:38
 * Description:
 * Version: V1.0
 */
public interface AnnService {
    /**
     * 增加公告
     *
     * @param announcementTitle,announcementDescribe
     * @return int
     */
    public int addAnn(String announcementTitle,String announcementDescribe,Integer employee_id);

    /**
     * 查询未发布公告
     *
     * @param currentPage,pageSize
     * @return 实例对象
     */
    public PaginationResult selAnnUn(Integer currentPage, Integer pageSize);


    /**
     * 查询已经发布公告
     *
     * @param currentPage,pageSize
     * @return 实例对象
     */
    public PaginationResult selAnn(Integer currentPage, Integer pageSize);

    /**
     * 发布公告
     *
     * @param announcementId
     * @return int
     */
    public int updateAnnId(Integer announcementId);

    /**
     * 编辑未发布公告
     *
     * @param announcement
     * @return int
     */
    public int updateAnn(Announcement announcement);

    /**
     * 删除未发布公告
     *
     * @param announcementId
     * @return int
     */
    public int delAnnById(int announcementId);

    /**
     * 根据员工id查询员工信息
     *
     * @param employeeId
     * @return int
     */
    public Employee selEmploy(Integer employeeId);
}
